package com.biz.primus.ms.commodity.trans.saleTag;

import com.biz.primus.ms.commodity.dao.po.SaleTag;
import com.biz.primus.ms.commodity.dao.ro.SaleTagRo;
import com.google.common.base.Function;
import javax.annotation.Nullable;


/**
 * Created by aaa on 2017/6/5.
 */
public class SaleTag2SaleTagRo implements Function<SaleTag, SaleTagRo> {
    @Nullable
    @Override
    public SaleTagRo apply(@Nullable SaleTag input) {
        final SaleTagRo resp = new SaleTagRo();
        resp.setIdx(input.getIdx());
        resp.setId(input.getId());
        resp.setEditor(input.getEditor());
        resp.setNote(input.getNote());
        resp.setShowName(input.getShowName());
        resp.setStatus(input.getStatus());
        resp.setSubTag(input.getSubTag());
        resp.setTag(input.getTag());
        resp.setTagImage(input.getTagImage());
        resp.setTagName(input.getTagName());
        resp.setUpdateTimestamp(input.getUpdateTimestamp());
        return resp;
    }
}
